import Vue from "vue";
import App from "./App.vue";
import router from "./router/index";
import store from "./store/index";

// 注册全局组件
import Tabbar from "@/components/common/tabbar/Tabbar.vue";
import TabbarItem from "@/components/common/tabbar/TabbarItem.vue";
import Navbar from "@/components/common/navbar/Navbar.vue";
import Scroll from "@/components/common/scroll/Scroll.vue";
import BackTop from "@/components/content/backTop/BackTop.vue";
// 轮播图组件
import Swiper from "components/common/swiper/Swiper.vue";
import SwiperItem from "components/common/swiper/SwiperItem.vue";
// 状态栏组件
import TabControl from "components/content/TabControl.vue";

Vue.component("Tabbar", Tabbar);
Vue.component("TabbarItem", TabbarItem);
Vue.component("Navbar", Navbar);
Vue.component("Scroll", Scroll);
Vue.component("BackTop", BackTop);
Vue.component("Swiper", Swiper);
Vue.component("SwiperItem", SwiperItem);
Vue.component("TabControl", TabControl);

Vue.config.productionTip = false;

new Vue({
  render: (h) => h(App),
  // 挂载
  router,
  store,
}).$mount("#app");
